
			
			<div class="container">  
				<div id="order_status">
				<div class="page-header" style="position:relative;">
					<h3>Order Status</h3>
				</div>
					<div class="row-fluid">
						<div class="span10">
							<ul class="horizontal">
                            <?php if($this->tank_auth->is_url('order_status/add')){ ?>
								<li><a href="<?php echo site_url('order_status/add');?>" class="btn">Add Order Status</a></li>
                            <?php } ?>
							</ul>
						</div>
					</div>
					<?php
					if(empty($hasil)){
						echo "<table class='table table-striped'>
							<thead>
								<tr>
									<td>Order Status Name</td>
								</tr>
							</thead>
						</table>";
					}else{
					?>
						<table class="table table-striped">
							<thead>
								<tr>
                                	<td width="1" style="text-align: center;"><input name="checkbox[]" id="checkbox[]" class="chk_boxes" type="checkbox" value="$row -> currency_id" /></td>
									<td>Order Status Name</td>
                                    <?php if($this->tank_auth->is_url('order_status/update') || $this->tank_auth->is_url('order_status/delete')){ ?>
									<td>Action</td>
                                    <?php } ?>
								</tr>
							</thead>
							<?php foreach ($hasil as $row): ?>
								<tr>
                                	<td width="1" style="text-align: center;"><input name="checkbox[]" id="checkbox[]" class="chk_boxes1" type="checkbox" value="$row -> currency_id" /></td>
									<td><?php echo $row -> name ?></td>
                                    <?php if($this->tank_auth->is_url('order_status/update')){ ?>
                                    <td><?php echo anchor('order_status/update/'.$row->order_status_id, '<i class="icon-edit"></i>', 'title = "Edit"')  ;?>
                                    <?php } ?>
                                    <?php if($this->tank_auth->is_url('order_status/delete')){ ?>
                                    <?php echo anchor('order_status/delete/'.$row->order_status_id, '<i class="icon-trash"></i>', 'title = "Delete" onclick="return confirmDelete();"'); ?></td>
                                    <?php } ?>
                                       
								</tr>
							<?php endforeach; ?> 
						</table>
					<?php
					}
					?>
                    <center>
                      <?php echo $pagination; ?>
                    </center>
				</div>
			</div>
        
        <script type="text/javascript" language="javascript">
			$(function() {
  				$('.chk_boxes').click(function(){
					var chk = $(this).attr('checked')?true:false;
					$('.chk_boxes1').attr('checked',chk);
				});
			});
		</script> 
	
